package com.zyg.consumer.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@RabbitListener(queues = "zl-gz")
@Component
public class MyListener3 {
    @RabbitHandler
    public void getMessage(String msg){
        System.out.println("zl-gz收到消息"+msg);
    }
}
